package com.itheima.HomeWork.homework07;

import java.util.*;
import java.util.function.Consumer;

public class Demo {
    public static void main(String[] args) {
        HashMap<Integer, Student> map = new HashMap<>();
        map.put(1, new Student("123", "张三", 82));
        map.put(2, new Student("456", "李四", 72));
        map.put(4, new Student("789", "王五", 89));
        map.put(3, new Student("666", "小二", 62));
        ArrayList<HashMap<Integer, Student>> hashMaps = new ArrayList<>();
        hashMaps.add(map);
        for (HashMap<Integer, Student> hashMap : hashMaps) {
            Set<Integer> integers = hashMap.keySet();
            for (Integer integer : integers) {
                Student student = hashMap.get(integer);
                System.out.println(integer + ":" + student);
            }


        }
    }
}
